package com.kaikeba.t31.core.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.io.Serializable;

/**
 * 所有实体类的基类，存放id属性，实现多态
 *
 * @author Cui Yicheng
 * @since 2021/11/06
 */
@Data
@JsonIgnoreProperties(value = {"handler"})
public abstract class BaseEntity implements Serializable {

    /**
     * 实体编号（唯一标识）
     */
    @TableId(value = "`id`", type = IdType.AUTO)
    protected Long id;

}
